GBML manual / Text

text_effect_speed_get

The speed, in percent, a text effect was last given with text_effect_speed: 100 when it was never set (or set back to 100).

Works differently on Game Boy - text_effect_speed_get gives the percent set with text_effect_speed on the Game Boy, 100 when it was never set.

Works differently on Game Boy Color - Text effects play in a plainer form: letters appear one by one, colors change as made, text shakes or ripples sideways; letters never turn or grow.

Works differently on Sega Genesis - The Sega Genesis plays a text effect its own way. This version plays the Tint track (the words' color mixed toward the effect's color, with the effect's timing) and the Wave and the Shake of the Letters track (each letter its own sprite). It does not play the other Letters looks yet and cannot turn, resize, block or fade words, so the other Letters looks and the Stretch, Blocks, See-through, Scale, Rotate and Flip tracks do not show (the build says which effect has one); use Make a sprite from this effect for those.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

text_effect_speed_get(effect) -> int

Arguments

NameType
effectoverlay

Returns

int

Description

Gives back the speed, in percent, a text effect was last given with text_effect_speed: 100 when it was never set, or was set back to 100.

Example

if (text_effect_speed_get(te_doc_flash) > 100) {
    x += 1;
}

The walker steps to the right while the effect is sped up.

See also: Overlay effects - screen effects you make yourselftext_effect_speedtext_effect_start